/*
 * IBM Corporation.
 * Copyright (c) 2014 All Rights Reserved.
 */

package com.ibm.iisp.dataie.model;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.ibm.iisp.common.vo.AuditVO;

/**
 * 类作用：
 * @author Johnny@cn.ibm.com
 * 使用说明：
 */
@Entity
@Table(name = "IISP_DATA_IE_IMPORT_ACT")
public class DataImportAction extends AuditVO{
	/**
	 * 
	 */
	private static final long serialVersionUID = -7547764424663064995L;

	public enum Action {
		REQUEST, IMPORT, APPROVE, REJECT, ERROR
	}

	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE)
	@SequenceGenerator(allocationSize = 1, name = "SEQ_GEN_SEQUENCE")
	private Long id;
	private String message;
	@Enumerated(EnumType.STRING)
	private Action action;

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Action getAction() {
		return action;
	}

	public void setAction(Action action) {
		this.action = action;
	}

	@Override
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
}
